<canvas id="everydayChart" width="400" height="200"></canvas>
<script>
$(function () {
   var everyday_num = @json($numbers);//时段人数值
   var days = @json($days);
   var ctx = document.getElementById("everydayChart").getContext('2d');
   var data ={
       type: 'line',
       data: {
           labels: days,
           datasets: [{
               label: '近7天每日登陆玩家数量统计',
               data: everyday_num,
               backgroundColor: 'rgba(152,245,255,0.6)',
               borderColor: 'rgba(102,139,139)',
               borderWidth: 1
           }]
       },
       options: {
           scales: {
               yAxes: [{
                   ticks: {
                       beginAtZero:true
                   }
               }]
           }
       }
   };
   var myChart = new Chart(ctx,data);
});
</script>
